﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Budgetsch.Web.EntityModel;
using Budgetsch.Web.Services;

namespace Budgetsch.ViewModels
{
    public class EditIncomeVM : IncomeDetailVMBase
    {
        public EditIncomeVM(BudgetschDomainContext context_, Income editedIncome_) : base(context_)
        {
            Income = editedIncome_;
        }

        public override void Commit()
        {
            m_context.SubmitChanges();
        }
    }
}
